#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'类和实例'


class Student(object):
    def __init__(self, name, grade):
        self.__name = name
        self.__grade = grade

    def getName(self):
        return self.__name

s = Student('MaoMao','三年级')
print(s.getName())
print(s.__name)
# s.__name = 'JiJi'
# print(s.getName())
